﻿using System.Collections.ObjectModel;
using Tfs.OnTheRoad.Commands;
using Tfs.OnTheRoad.Model;
namespace Tfs.OnTheRoad.ViewModel
{
    /// <summary>
    /// Projects List ViewModel
    /// </summary>
    public class ProjectListViewModel : BaseListViewModel<Project>
    {

        public NavigateToProjectCommand NavigateToProject
        {
            get;
            private set;
        }

        public RemoveProfileCommand RemoveProfile
        {
            get;
            private set;
        }

        public AddProfileCommand AddProfile
        {
            get;
            private set;
        }
        public SelectProfileCommand SelectProfile
        {
            get;
            private set;
        }        
        
        public ObservableCollection<SettingsViewModel> Profiles { get; set; }

        public ProjectListViewModel():base()
        {
            Profiles = App.SettingsViewModels;
            NavigateToProject = new NavigateToProjectCommand();
            RemoveProfile = new RemoveProfileCommand();
            AddProfile = new AddProfileCommand();
            SelectProfile = new SelectProfileCommand(this);
            PageTitle = "Projects";
        }

        public ProjectListViewModel(string path)
            : base(path)
        {
        }

        public override string GetNoResultsFoundMessage()
        {
            return "No Projects were found.";
        }

        public override string GetEntityCollectionName()
        {
            return "Projects";
        }
       
    }
}
